DownloadRequest

data class DownloadRequest @JvmOverloads constructor(val indexFile: IndexFile, val mirrors: List<Mirror>, val proxy: ProxyConfig? = null, val username: String? = null, val password: String? = null, val tryFirstMirror: Mirror? = null)

Constructors

Link copied to clipboard
constructor(path: String, mirrors: List<Mirror>, proxy: ProxyConfig? = null, username: String? = null, password: String? = null, tryFirstMirror: Mirror? = null)
constructor(indexFile: IndexFile, mirrors: List<Mirror>, proxy: ProxyConfig? = null, username: String? = null, password: String? = null, tryFirstMirror: Mirror? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val password: String? = null
Link copied to clipboard
val proxy: ProxyConfig? = null
Link copied to clipboard
val tryFirstMirror: Mirror? = null

Signals the MirrorChooser that this mirror should be tried before all other mirrors. This could be useful for index updates for repositories with mirrors that update infrequently, so that the official repository can be tried first to get updates fast.

Link copied to clipboard
val username: String? = null